import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * clase Oso
 * 
 * @author Anthony Misael Robledo 
 * @version 1.1
 */
public class Oso extends Maloso
{
    /**
     * movimiento del oso usando atributos de la super clase
     */
    public void act() 
    {
        World m= getWorld();
        super.mover(1);// Add your action code here.if(getY()==m.getHeight()-2||getX()<1)
         if(getY()==m.getHeight()-2)
           getWorld().removeObject(this);
         
         if(!esObstaculo()&&!esObstaculo2())
           setLocation(getX(),getY()+2); 
        }
}
